import request from '@/utils/request'
export function getFeatureUsContent(typeCode) {
  return request({
    url: '/feature/feature/list/'+typeCode,
    method: 'get'
  })
}
// 查询运输功能列表-前台
export function listFeatureType(typeCode) {
  return request({
    url: '/feature/feature/list/'+typeCode,
    method: 'get',
  })
}

// 查询运输功能列表
export function listFeature(query) {
  return request({
    url: '/feature/feature/list',
    method: 'get',
    params: query
  })
}

// 查询运输功能详细
export function getFeature(id) {
  return request({
    url: '/feature/feature/' + id,
    method: 'get'
  })
}

// 新增运输功能
export function addFeature(data) {
  return request({
    url: '/feature/feature',
    method: 'post',
    data: data
  })
}

// 修改运输功能
export function updateFeature(data) {
  return request({
    url: '/feature/feature',
    method: 'put',
    data: data
  })
}

// 删除运输功能
export function delFeature(id) {
  return request({
    url: '/feature/feature/' + id,
    method: 'delete'
  })
}
